package com.demo.spring_demo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.concurrent.CountDownLatch;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageInfo<T> {

    private int pageIndex;
    private int pageSize;
    private List<T> list;
    private User user;
    private Song song;
    private PlayList playList;
    private int count;


    public PageInfo(int pageIndex, int pageSize, List<T> list,int count) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.list = list;
        this.count = count;
    }
}
